package com.example.day17;

import java.io.File;
import java.io.IOException;

/**
 * @author Lenovo
 */
public class FileDemo03 {
    public static void main(String[] args) throws IOException {
        File f1 = new File("myFile\\java.txt");
        System.out.println(f1.delete());
        System.out.println("--------");
        File f2 = new File("myFile\\itcast");
        System.out.println(f2.delete());
        System.out.println("--------");
        File f3 = new File("myFile\\itcast");
        File f4 = new File("myFile\\itcast\\java.txt");
        System.out.println(f3.delete());
        System.out.println(f4.delete());
    }
}
